package com.mt.components.utils {
	import mx.controls.Alert;

	/**      
	 * 类名称：AlertUtil<br>
	 * 类描述：<br>
	 * 创建人：马腾<br>
	 * 创建时间：Dec 9, 2012 12:44:49 AM<br>
	 * 修改人：马腾<br>
	 * 修改时间：Dec 9, 2012 12:44:49 AM<br>
	 */
	public class AlertFactory {
		
		private static var instance:AlertFactory;
		
		public static function getInstance():AlertFactory {
			if(!instance){
				instance = new AlertFactory();
			}
			return instance;
		}
		
		public function confirmAlert(fun:Function):void{
			Alert.show("确定删除吗?" , "删除提示" , 3 , null , fun);
		}
		
		public function alert(message:String):void {
			Alert.show(message);
		}
	}
}